import { defineConfig } from "vitepress";

// https://vitepress.dev/reference/site-config
export default defineConfig({
  title: "z-ui组件文档",
  description: "手写一个Vue3组件库",
  themeConfig: {
    // https://vitepress.dev/reference/default-theme-config
    nav: [
      { text: "首页", link: "/" },
      { text: "组件", link: "/src/components/icon" },
    ],

    sidebar: [
      {
        text: "指南",
        items: [{ text: "快速开始", link: "/src/directions/quick-start" }],
      },
      {
        text: "组件",
        items: [
          { text: "Icon", link: "/src/components/icon" },
          { text: "Tree", link: "/src/components/tree" },
          { text: "Button", link: "/src/components/button" },
        ],
      },
    ],

    socialLinks: [
      {
        icon: "github",
        link: "https://gitee.com/UncaughtTypeError/my-ui-framework",
      },
    ],
  },
});
